package com.lz.sports.bean

import androidx.room.Embedded
import androidx.room.Relation

//考生信息带项目成绩
class ExamineeWithResult {

    //考生信息
    @Embedded
    var examinee: Examinee? = null

    //考生项目成绩表
    @Relation(
        parentColumn = "id",
        entityColumn = "examineeId"
    )
    var resultList: List<ExamResult>? = null

    fun isInvalid(): Boolean = examinee == null || resultList == null
}